
import Relay from "react-relay";
export default class findProWorkShopMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { findProWorkShop }`;
    }

    getVariables() {
        return {
            argsInput: {
                enterpriseId: this.props.enterpriseId,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on findProWorkShopPayload  {
            findProWorkShop {
                errorCode
                value
                totalResult
                id
                proWorkShopList{
                    isSys
                    name
                    updateTime
                    enterpriseId
                    createTime 
                    updateBy
                    deleteStatus
                    workShopId
                    createBy
                    createByName
                    updateByName           
                } 
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on findProWorkShopPayload  {
                    findProWorkShop {
                        errorCode
                        value
                        totalResult
                        id
                        proWorkShopList{
                            isSys
                            name
                            updateTime
                            enterpriseId
                            createTime 
                            updateBy
                            deleteStatus
                            workShopId
                            createBy
                            createByName
                            updateByName
                        }  
                    }
                 }
            `]
        }];
    }

}
